/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { PostThumbAddRequest } from "../models/PostThumbAddRequest";

import type { CancelablePromise } from "../core/CancelablePromise";
import { OpenAPI } from "../core/OpenAPI";
import { request as __request } from "../core/request";

export class PostThumbControllerService {
  /**
   * doThumb
   * @param postThumbAddRequest postThumbAddRequest
   * @returns any OK
   * @throws ApiError
   */
  public static doThumbUsingPost(
    postThumbAddRequest: PostThumbAddRequest
  ): CancelablePromise<Record<string, any>> {
    return __request(OpenAPI, {
      method: "POST",
      url: "/api/post_thumb/",
      body: postThumbAddRequest,
      errors: {
        401: `Unauthorized`,
        403: `Forbidden`,
        404: `Not Found`,
      },
    });
  }
}
